Javascript Get Distinct Values From Array To String