reconstruct main.js