Minor fix in an example

Event name was wrong (changeSwitch instead of change-switch) so the example wasn't working (and was confusing).