dijkstra in javascript
dijkstra algorithm in py