Refactored import/export code to SharedPaper.js