Only load javascript if a map is present - fixes starting point test