fixed map.js reference issues