typo correction for #274 indexof() -> indexOf()