A JavaScript game engine