Refactored live-world.js