How to write cleaner JavaScript code (destructuring) | Hacker News Reader