add d3 script dependency