Draft implementation of filtering by collection-like attributes + js few fixes