A thin, modular game engine in JavaScript