I have two different js files that use the same module.

file1.js:

```
var mod1 = require('commonmodule.js');
mod1.init('one');

```

file2.js:

```
var mod2 = require('commonmodule.js');
mod2.init('two');

```

(both these files file1.js, file2.js are loaded inside my server.js file, they themselves are modules)

now in commonmodule.js:

```
var savedName;
exports.init = function(name)
{
    savedName = name;
}
exports.getName = function()
{
    return savedName;
}

```

I noticed that this savedName is always overridden dependent on who set it last.So it doesn't seem to work. How would I get a module to maintain state?

Note: I also tried to set savedName as exports.savedName in the commonmodule.js but it doesn't work either