Accessing device orientation in pure JavaScript | Hacker News Reader