update on map.js to access api