Update main.js

Cleaned up formatting