update dependency indexof for old browsers