added helper file for thermostat.js