Update main.js

Fixed tabbing and spacing, commented a load of stuff.