This has been commented on the mailing list that is a bit risky.

Is used cause is faster than querySelector('#group-' + group) ??

Also is confusing, we are declaring a variable 'group' and another one is coming as parameter with the same name.
Please rename ;)