Fixed switch bug.

Resolved issue where “off” class was not being removed from dynamically
created switches.
Merge pull request #106 from sourcebits-robertbiggs/master

Fixed switch bug.