Array.indexOf doesn't work in IE8 use Polyfill from mdn