fix splice to find the correct end after the starting location
Merge pull request #5 from atoponce/gh-pages

fix splice to find the correct end after the starting location