Writing Testable Frontend Javascript – Anti-patterns and their fixes | Dark Hacker News