Boilerplate for an HTML5 canvas game