Bash Create Empty Array Javascript Appendchild Not Working