This small guide applies to paper.js in general, not just TURTLE_PAPER.
To export a paper.js drawing as SVG, run the code below when you want the project being exported.
Make sure to read the official paper.js docs.
// Export the current view as SVG. Returns an SVGElement by default.
paper.project.exportSVG();