refactor map.js fetchGauges to pass in callback