Restructuring Array Javascript Join Objects In Autocad