update d3 and mocha definitions