How to safely determine if JavaScript is running in Node.js or the browser | Hacker News Reader