Support bootstrap-switch.js v3 api