Clarifies that the endIndex for slice isn't included.

Other JS references clarify this and I found myself tripping on it today since
it wasn't obvious.