Javascript 2D Game Framework