Refactor part of app.js into Engine.prototype.main function
First tutorial
Simple XKCD tutorial