small changes to maps am.js file