Unexpose selectorToId function
Remove semicolons after function declaration
Modify "id" and "label" attrs for states to preserve uniqueness
Basic examples (buttons and checkboxes)