text: $(document).ready(function() {
    var thermostat = new Thermostat();
    updateTemperature();
  
    $('#temperature-up').on('click', function() {
      thermostat.up();
      updateTemperature();
    })
  
    $('#temperature-down').click(function() {
      thermostat.down();
      updateTemperature();
    })
  
    $('#temperature-reset').click(function() {
      thermostat.reset();
      updateTemperature();
    })
  
    $('#powersaving-on').click(function() {
      thermostat.switchPowerSavingModeOn();
      $('#power-saving-status').text('ON');
      updateTemperature();
    })
  
    $('#powersaving-off').click(function() {
      thermostat.switchPowerSavingModeOff();
      $('#power-saving-status').text('OFF');
      updateTemperature();
    })
  
    function updateTemperature() {
      $('#temperature').text(thermostat.temperature);
      $('#temperature').attr('class', thermostat.energyUsage());
    }
  
    $('#select-city').submit(function(event) {
      event.preventDefault();
      var city = $('#current-city').val();
      displayWeather(city);
    })
  
    function displayWeather(city) {
      var url = 'http://api.openweathermap.org/data/2.5/forecast?q=' + city;
      var token = '&appid=e6d3e3ec5f351d81c755e4b487567f9f';
      var units = '&units=metric';
      $.get(url + token + units, function(data) {
        $('#city-temperature').text(data.main.temp);
        $('#feels').text(data.main.feels_like);
      })
    }
  
    // function getShibe() {
    //   return $.get('http://shibe.online/api/shibes?count=[1-100]&urls=[true/false]&httpsUrls=[true/false]')
    // }
    //
    // $('#shibe').append(`<img src="${getShibe.responseJSON[0]}">`)
  
  })
  