There doesn't seem to be much point in returning a global variable, the function can just set it and other functions reference it.
var setGlobal = (function(global) {
  return function(value) {
    global.someVarName = value;
  }
}(this));
var readGlobal = (function(global) {
  return function() {
    return global.someVarName;
  }
}(this));
setGlobal('foo');
alert(readGlobal()); // foo
alert(someVarName);  // foo