package_to_print.jsx: close the document at the end of the script.