Shift Element In Array Javascript Join Objects In Autocad