Fix page-specific javascript for maps