reconfiguring maps.js to make future modifications easier