anchor.diff:              
               $.get("../BBQTemp?json=setConfigurationData", { 
                   maxTemperatureValue: maxTemperature, 
  -                tempTypeValue: tempType
  -              
  -          
  +                tempTypeValue: tempType  
               })
               .done(function(data) {
  -                
  -           
  -                
  +       
                   // Server should respond <result>ok</result>
         
  -               if (data == "<result>ok</result>")
  +                if (data == "<result>ok</result>")
                   {
                       //todo MODAL JQUERY/BOOTSTRAP ALERT BOX
                       alert ("Settings Saved succesfully!");
  
positive.code:             e.preventDefault();
              $(this).tab('show');
          })
          
          $("#saveButton").on("click", function() {
              var maxTemperature = $( "#slider-range-max" ).slider( "value" );
              var tempType = $("#temperatureType option:selected").val();
  
negative.code:                 {
                      //todo MODAL JQUERY/BOOTSTRAP ALERT BOX and with error code from server...
                      alert ("Settings save failed!");
                  }    
              },"html");   
          });   
      });
      
      $(function() {
  
  
          
         
      
         
      
          $( "#slider-range-max" ).slider({
              range: "max",
              min: 10,
              max: 450,
              value: 120,
              step: 2.5,
              slide: function( event, ui ) {
                  $( "#maxTempAmount" ).val( ui.value );
              }
          });
          $( "#maxTempAmount" ).val( $( "#slider-range-max" ).slider( "value" ) );
          
           $.getJSON('../BBQTemp?json=getConfigurationData', function(data) {
             
           
             $( "#slider-range-max" ).slider("value",data.max_temperature );
             $( "#maxTempAmount" ).val( data.max_temperature );
             
             //data.temperature_unit
             //temperatureType
             $("#temperatureType option[value='"+data.temperature_unit+"']").attr("selected", "selected")
            
  
          });    
      });
      
      
  </script>