fixed bug in some php environments

"(function () { 
  jQuery('.switch')['bootstrapSwitch'](); 
})();"

breaks in some php environments the swiches, because don't set the class "has-switch"

The following code fixes the bug:

"(function($) {  // creates scope for $ sign assigned to jQuery
    $(function () { // on dom ready
        $('.switch')['bootstrapSwitch'](); // attach bootstrapswitch
    });
})(jQuery);"

( https://github.com/nostalgiaz/bootstrap-switch/issues/75#issuecomment-20727665 )