d3 finally working