ai pathfinding + jqueryui