Solve a problem in main.js