Encapsulation in Javascript | Hacker News Reader