HTML5 canvas, abstract clock