Fix IE error when Array.indexOf is not available

IE<9 doesn't have an .indexOf function for Array
And it throws an error when injecting the css