fix: errors in javascript when viewing island or world.