refactored world.js code
improved styling