Simple pie chart on JavaScript + HTML 5 Canvas