Fix IE9< Array.indexOf() error

IE<9 doesn't have an .indexOf() function for Array.