'Returns JavaScript containing all of the loading routines for each
map in this set.'

def load_map_js(self):

    result = []
    for (dom_id, gmap) in zip(self.dom_ids, self.maps):
        tmp = (gmap.template, gmap.dom_id)
        gmap.template = self.map_template
        gmap.dom_id = dom_id
        result.append(gmap.js)
        (gmap.template, gmap.dom_id) = tmp
    return mark_safe(''.join(result))
