Flexible JS Pathfinding Engine