A micro framework for JavaScript games