fix missing jQuery.browser in popupforms.js to work with jQuery 1.9
to attach an event handler, use "on" instead of the deprecated "live" (depends on jq 1.7)
don't attach these event handler on document to prevent the event from bubbling up the whole DOM, which can lead to poor performance