Update calcRoute.js