Adding animation to the D3.js visualization