JavaScript String Methods: Example of slice Function