A framework for HTML5 2D game development