Moved the animation code from save-world.js to map.js, so now it is only needed once.