revised condition on for loop on checkTempMan function (globs.js)