clean up transition circle d3.js code