Javascript Iterate Through Array Of Strings In Matlab