Bash Send Output To Array Javascript Appendchild