your browser does not support the canvas tag

Try setting the miterLimit to 4, the length of the corner will then exceed the miter limit, and will be displayed as lineJoin "bevel".