HTML5 adventure game engine