Just an ordinary dijkstra algorithm written in javascript and visualized, because I wanted to write it. :)