JavaScript Finite State Machines | Hacker News Reader