Some hotfixes to make this compatible with newer version of jQuery

$.browser and $.live functions were removed from jQuery. This adds the browser function back in (thanks to 'takien' from [stackoverflow](http://stackoverflow.com/questions/9645803/whats-the-replacement-for-browser)), and also replaces the the $.live() calls with $.on().