closing d3 script