new file and fixes

added map.js and made scripting fixes on index