Aside from the whitespace (which you already mentioned on IRC), $ is not available as a global here as jquery.mwExtension doesn't have a closure yet to call $ for jQuery.
As you know, $ was already used on the line below so I just continued what was already there.
Fixed this in r94332, along with a few other files that used the global jQuery instead of a locally scoped $.