making the innerHTML and get_gmaps be outside of the loop?