Implement `$.prototype.index`

I agree, that would be easier to read.