[javascript] Get all non-unique values (i.e.: duplicate/more than one occurrence) in an array