Update switchbutton.js

Fixed: freezing when having more than one SwitchBox