Replaced use of jQuery.browser with feature detection, for compatibility with jQuery 1.9 and above