Assign Array To Another Array Javascript Length Of Elements