modified:   aStar.js