Transform a SVG file to a JavaScript string