Split Bash String Into Array Javascript Append