Shift Array Javascript Append String