paints a clock in an HTM5 canvas element