Pathfinding algorithms (A*,...) implemented in Javascript