A game engine runloop implemented in Node.js