fix error in elevation.js