created map.js

took code that was in index.html