Wired up the console print method to the document