I have a D3JS tree that I want to download as SVG. I am successful in downloading and rendering the SVG file if I use the following code and parse it to replace the first