Bug fix: DeviceReady not being triggered on iOS.
The solution: using jQuery: toggleClass(), instead of jQuery UI: switchClass().