Fix distance

change in map.js file.  correctly referencing variable now.