So, I wouldn't use jcr:group as the property name unless you've added that to the jcr namespace. Just use a custom property like "groupId" or "group".Secondly, having a JavaScript class is kind of overkill for this situation (unless you have some business logic going on which you haven't presented)...