Javascript Get Distinct Values From Json To String