K-means clustering in JavaScript | Hacker News Reader