make it so each work get's it's own group

This doesn't actually group yet, but adds a javascript object that will hold the groups.