js ui - d3.js animation