Integration Spaghetti using D3.js