Javascript game framework for 2d games