Formatted some code in map.js