Shift Right Array Javascript Append Method