Update calculate_distance.js