jQuery.browser can be helpful when trying to figure out which browser. jQuery.browser
was removed in jQuery 1.9.
I believe it is based on navigator.UserAgent, however navigator.UserAgent can tell you the OS on its own if you want.
Try this:
var isMobile = navigator.userAgent.match(/(iPad)|(iPhone)|(iPod)|(android)|(webOS)/i)
source