Move debug statement in pathfind.js to proper place.