Update calculateDistance.js