Moved map logic to standalone js file
- due to closure's bug with compiling js files inside
app/assets/javascripts directory, map.js should be in public/javascripts
directory