Fix for jQuery 1.9 where the browser object has been removed :-(