cleaning up d3 historical chart