Document classification in JavaScript | Hacker News Reader