Debugging D3.js charts