Framework for HTML5 Canvas oriented 2D video games