clean up require-main.js