Use of navigator.userAgent instead of $.browser

$.browser object has been removed from jQuery 1.9.0
Merge pull request #521 from loris/patch-1

Use of navigator.userAgent instead of $.browser