Fix a bug in indexOf(). Add indexOfElement() and request().

Fixed.