route-planner.js changes