Testing the JavaScritp library d3js