JavaScript helper function for you to use | Hacker News Reader