Get the current useragent data using javascript.