Fix Djikstra's exception

Only add nodes that exist on the map, update js-data-structures

Fixes #41