boilerplate to make game on canvas createJS