Javascript coding error - lesson learned | Hacker News Reader