An HTML5 game framework