2D HTML game framework