added A* js mindblowing amazingness