Hmm, yeah thats probably a good point. I wanted a function that was mainly for checking the user agent, but I think moving `localStorage` and `window.JSON` into this method makes sense.