Refactoring Legacy JavaScript Code to Use Classes | Hacker News Reader