insert previewPrint into preview.js