Doing it a better way would have caused a lot of extra code to be sent with every page load, which I figured was worse. I've had some ideas today about a better way to do that, and I'll see if I can get that done tonight.
And to be fair, it really has nothing to do with a mobile app.