Fix "d3 is not defined"