This is an example of a four-pass image blur filter using only Javascript and the HTML 5 canvas. This is not the optimal solution. If you want the details browse the code or read the blog post.