A HTML5 game framework