Filter unique values from an array in dojo