Javascript Filter Duplicates From Array To String