Added console.log(mapElements) before for each loop in initMap()