Closed #5390: main.js throw error