Sample d3js+jasmine codes