A* pathfinding on a grid in one JavaScript file, with a binary heap, diagonal moves and weighted tiles, plus a demo page.
Licence: MIT. Source: GitHub.
Read it on Gaming World