Second version of d3.js animation.