Adding support for groups to keep state on expanded or collapsed if jquery.cookie is enabled