remove superfluous D3.js calls