trying to make templates and google.maps.api work with each other