added method to retrieve groups added requirejs