^This is true, but if you want to do it the long way, arrays are the way to go.^
also since A* is so flexible, the chances of finding a plugin that fits you perfectly are pretty small.
and if you don't know how to code in java(sense your using C2 chances are you don't). this is your best bet.
Once again Java is not JavaScript and HTML5 is JavaScript based.
Also there are already a few pathfinding plugins and behaviors released in the forum dedicated to third-part plugins.
Nicely working example though, but would it work on any kind/size of layout without a major rework of the algorithm ?
I only took a quick look at the code, but first event in the algorithm being a loop of 0 to 100 seems pretty limiting.