Using statecharts for JavaScript applications | Hacker News Reader