Move pdf_export code app.js -> webfigure.js