d3.js not upto the mark