Update environmentFunctions.js