Extract all printing functions in to a printer.js file and import it in to your profile.js file.