How to make sure undefined is not defined in javascript | Hacker News Reader