text: 
        $(function(){
  
          'use strict';
  
          $('.select2').select2({
            minimumResultsForSearch: Infinity
          });
  
          // Select2 by showing the search
          $('.select2-show-search').select2({
            minimumResultsForSearch: ''
          });
  
          // Select2 with tagging support
          $('.select2-tag').select2({
            tags: true,
            tokenSeparators: [',', ' ']
          });
  
          // Datepicker
          $('.fc-datepicker').datepicker({
            showOtherMonths: true,
            selectOtherMonths: true
          });
  
          $('#datepickerNoOfMonths').datepicker({
            showOtherMonths: true,
            selectOtherMonths: true,
            numberOfMonths: 2
          });
  
          // Color picker
          $('#colorpicker').spectrum({
            color: '#17A2B8'
          });
  
          $('#showAlpha').spectrum({
            color: 'rgba(23,162,184,0.5)',
            showAlpha: true
          });
  
          $('#showPaletteOnly').spectrum({
              showPaletteOnly: true,
              showPalette:true,
              color: '#DC3545',
              palette: [
                  ['#1D2939', '#fff', '#0866C6','#23BF08', '#F49917'],
                  ['#DC3545', '#17A2B8', '#6610F2', '#fa1e81', '#72e7a6']
              ]
          });
  
        });
   