Iterate Key Value Array Javascript Appendchild