Update main.js

replaced console.log with display.print so the text is printed in the HTML and not in the debug window.