Avoid global namespace polluting

As you might know, it's not recommanded to pollute global namespace in node.js.. Some test frameworks like Mocha fails as soon as you try to define a glabol variable..

This fix aims at preventing global namespace pollution in node.

Please merge if interested and update on npm please.