Use of d3 and require.js