Replaced $.browser property in order to work in jQuery 1.9+. Used navigator.userAgent instead.