Help using erode filter

This is great filter effect.

I try to test if it work in wordpress, and when I try to export as OAM widget, it show:
syntaxError:unexpected token'<'

Also checked the javascript code at

it show like as below:

I am coding background, maybe someone could optimize the javascript code?

Th effect doesn't seem to be the error. It is some code in untitledFunction (according to your screenshot). Also, I looked at the validator you use… didn't work for me. I use closure compiler, so it checks out (Google).

The effect works across browsers.

The animation using the decorator seems to only work on chrome (where I had fun building it). Not because of the decorator, but because the browser don't pick up the change SVG filter (Safari, Firefox).

That is as far as I can take help for now.