Final main.js cleaned.