Create a thermostat using JavaScript. Testing in Jasmine.