Better d3 code
Add transitions