Fix error when running headless client.
Run all bot logic in single script file and instance (InfiniteWorld.js) in order to increase performance considerably. TODO: no client-side animation playback yet.