Fixing check for enableJSTGlobalVariable in config

The current check for `config.enableJSTGlobalVariable` wasn't working because it lives in `config.options.enableJSTGlobalVariable`. This is however merged into `options` earlier in the script, so I'm using that.