A thermostat program written in javascript. Tested using Jasmine.