SVG to JS converter