add polyfill for array.indexOf for IE8