Basic 2D JavaScript Game Framework