Simulating Waves in Javascript | Hacker News Reader