JavaScript Canvas Polygon 0.2