Bash Read String Into Array Javascript Function How To Use