fixed bug in some php environments

"(function () { 
  jQuery('.switch')['bootstrapSwitch'](); 
})();"

breaks in php 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);"