Fix for $.browser.msie deprecated in latest jquery