Add agent param to getBrowser()

Add a param for user agent to getBrowser. Makes function useful for cases where you supply your own user agent. For instance one stored in a database.