reformats the js and refactors how the map loads and is styled