Use of navigator.userAgent instead of $.browser