code sample from the book (html5shootemupinanafternoon-sample)