Matlab Split String Into Array Js Functions