JavaScript String object : slice() method