Implement forum cohort visibility labels correctly

TNL-25
Do we only need the group names when the request is non-AJAX?