figuring out getting json from api
fixed populateData() in map.js