Datalous Javascript Pathfinding