Implement Array's indexOf() method for IE8