See a demo at http://www.briangrinstead.com/files/astar/
If you want just the A* search code (not the demo visualization), use code like this http://gist.github.com/581352
If you don't have grunt installed, follow the grunt getting started guide first.
Pull down the project, then run:
npm install grunt