Error recognizing variables

This should be environment on both the variables - that’s the reason for the error, from what I can see.

Also the way you are referencing the second of the 2 variables is incorrect JavaScript syntax.

My script can be found here: