TeX line breaking algorithm in JavaScript (and HTML5 Canvas) | Hacker News Reader