hopefully sorted the window.d3 leak