Rebuilding main.js