Render d3.js charts inside PhantomJS