Add indexOf to Array prototype