Cleaned main.js.

Removed comments and console logs