split up js code further by putting the d3 responsible for the map in a map.js file.