cleanup main.js