Commonjs compatibility

So filters.js can be used with NodeJS, in combination with https://github.com/Automattic/node-canvas

I was playing around with this a bit: https://github.com/timotgl/image-quality-analyzer/blob/temp/lib/blur.js#L1