Draw and animate pie charts with javascript and HTML5 canvas