modifies a template SVG with javascript