Simple Javascript Canvas app to demonstrate Dijkstra and MST in 2D space