diff --git a/src/_0_scripts/ie8-main.js b/src/_0_scripts/ie8-main.js
index <HASH>..<HASH> 100644
--- a/src/_0_scripts/ie8-main.js
+++ b/src/_0_scripts/ie8-main.js
@@ -1,3 +1,10 @@
+// indexOf polyfill
+// Minified version of this:
+// https://stackoverflow.com/a/35054662/1611058
+if (!Array.prototype.indexOf) {
+  Array.prototype.indexOf=function(r){var t=this.length>0,i=Number(arguments[1])||0;for((i=i<0?Math.ceil(i):Math.floor(i))<0&&(i+=t);i<t;i++)if(i in this&&this[i]===r)return i;return-1};
+}
+
 $(document).ready(function(){
 
 //IE8 tabs code
Fixed IE8 js error

I thought indexOf would be safe to use but apparantly it isn't.
I'm adding a polyfill to make it safe