How to detect mobile devices in JavaScript | Hacker News Reader