Small changes to javascript for mi map.