A JavaScript game Engine for programming based games