Draw Regular Polygons in HTML5 canvas