Matlab For Loop Over String Javascript Functions