Add groups with mandatory by js