Integrated js pathfinding library into Map model