exporting of D3 based chart using Angular, Node, PhantomJS