A rotary dial using HTML5 canvas and javascript