Defining JavaScript functions, the ES6 way | Hacker News Reader