populate content of gmaps infowindow with template