Javascript Loop Through Array Of Strings Matlab Web Preferences