A simple HTML5 canvas demo of drawing polygons