Trying to create a more complex version of a d3 map with a click-to-zoom function and a drag to pan function