Test D3.js with Jasmine