Combine All Strings In Array Javascript Append Function In Matlab