UserAgent parser for jQuery