Finished basic engine.js.