update global variable in scope, clears headers

Hello, globalConfig created in $.globalConfig and I think is wrong.