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.
Merge pull request #3928 from MiguelMadero/document-slice

Clarifies that the endIndex for slice isn't included.