Remove unused code from map.js and use standard template format
Merge pull request #361 from LocalData/map-code-cleanup

Remove unused code from map.js