Update onoffswitch.php

Just saw your email and checked out the plugin. Lookin' pretty sharp! I didn't get a chance to run it locally, but may have spotted an extra } hanging out in there. I indented things a little too, which is pretty common so that you can visually group funcs together and see if statements a little clearer.
Merge pull request #1 from frockenstein/patch-1

Update onoffswitch.php