introduce the avoidGlobals flag to the closure configuration to fix closure adding globals to the generated file; currently the flag set to true will wrap the code regardless the fact that there is or not a global.
rename one variable and inline another one.
fix indentation
Merge pull request #2 from mone/avoid-closure-globals

Prevent the generated file from include global functions