Adds Array.prototype.indexOf polyfill

Array.prototype.indexOf is not supported in IE8-. This commit adds a polyfill for Array.prototype.indexOf so that classList.contains doesn't fail in IE.