Seems like this would be a useful data to have across the whole application, how about moving to [Detect.js](https://github.com/guardian/frontend/blob/master/common/app/assets/javascripts/modules/detect.js)