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

I think `request` has good parity with `require`.