abstract a Group struct, and add it to engine
function each, replace underscore with jquery