Javascript Array Shift Method Jstor