Thermostat, written in javascript. Makers Academy week 7