Check for jQuery.browser.

In newer versions of jQuery, $.browser is depreciated. Added a check for the browser object.