Micro-game engine for JavaScript