Update main.js

Print to console