Implement `$.prototype.index`
Merge pull request #528 from jugglinmike/index

Implement `$.prototype.index`