A JavaScript framework for creating 2d canvas games on the Ejecta platform