Dijkstra's algorithm using scala.js and D3.js | Hacker News Reader