Method overloading in JavaScript | Hacker News Reader