[javascript] D3.js: How to get the computed width and height for an arbitrary element?