Boilerplate for HTML5 games