Generate Groups

Generate groups using JS based on data.