Matlab Add Values To Array Javascript Length Of String