JavaScript: shift() method ~> Array