Update require-main.js