Php Set Empty Array Javascript Appendchild