Adjust lastIndexOf to match es6 spec
indexOf test coverage
Merge pull request #1706 from megawac/index-index

Adjust lastIndexOf to match es5 spec