A js implementation of the A* path finding algorithm