diving into javascript with d3