Get Only Unique Values From Array Javascript Appendchild Not Working