Discussed this with @Osmose in a previous PR.

I think the consensus at that time was to try and preserve the functionality in `filters.js` so that it could still work in IE8?