Fixing the code to be jQuery 1.9+ compatible

A quick fix to make it work with jQuery 1.9+ without warnings.

replaced '.live()' with '.on()'
replaced the browser detection ($.browser) with a simple JSON detection