filteredProperties in js