Postgres Value In Array Javascript Appendchild Not Working