Updated main.js boilerplate