removed unused function from groups, jshint