Cleaned main.js