@jonlemmon You wanted to use ENV variable but that doesn't make sense here because the JS code is executed on the client. So I passed the ENV variable through the DOM element that I was already using for passing data needed by the script.