fixing client-side script for groups page in ACP