OPtimized main.js.