Move most of the javascript from simiam.html into world.js.