Javascript Add All Items In Array To String Matlab