Stuff from the core html5 canvas book