Javascript Turn String Into Char Array In Matlab