Fix undefined error popupforms.js

The $ gets scoped and is used all the way in this function but not in 
#53. There 'jQuery' is used. That caused an undefined error on my site. 
The change should fix that.