JavaScript Blur on canvas

Using javascript to blur (an image on) a canvas.
This simple demo animates the blur amount first up, then down to zero.
This could be interactive, and the rate of change need not be constant - ie this could use an easing function.
As this does not use css it works wherever canvas works.