Cleanup main.js file.