Transforms a SVG file into a JavaScript string