Fix issue in jquery 1.9 and later

Starting with jquery 1.9 $.browser has been removed.  There are jquery addons that can get it back but my change is to test for existance of $browser before accessing any property in it.