A framework for making javascript games