JS updates for filtering