Matlab Split String Into Character Array Javascript Push And Pop