Update main.js

Fix js error in world load.