Small thermostat app created in JavaScript. Tests with Jasmine