An HTML5 game engine for creating text-based games