Fix for chrome. For some reason, the foreignObject is not being removed by d3.