parseUserAgent is a function that takes a user agent and returns the browser name and version (and soon the operating system and version).