learning d3 and java script