Update distance_check.js