Add Array.indexOf for browsers that don't support it (IE<9)