HTML5 canvas to draw gear