A framework for building single-html-page games driven by Javascript