Added an Array.indexOf polyfill for IE8.