Removed all d3.select statements and added unit test.

This ensures that multiple maps can be put on the same page without interferences