Update slice call with one more conforming with ECMAScript specifications.