Adding Array's indexOf prototype for IE8 and below