Closed #5390: main.js throw error

main.js throw error