Php Loop Over Array Javascript Appendchild After Element