MDL-21887 fixed borked JS, but still the groups ajax needs a major cleanup