cleaned up js for task groups