C Sharp Split String Into Array Js Functions