spec and js file for thermostat wiped clean to start: