Put the user agent in the device object