Made main.js fit style guide