Update script filter

```map``` and ```indexOf``` on arrays were only added in IE9.
Changed to make use of jQuery's equivalents.