Setup work for path_finding (A*) in JavaScript, this is part 1
Pathfinding (A*) in JavaScript. Included portals because why not