working d3js, only invalidate