switching variable name in closure

Hope I did the right thing. 'export' variable wasn't used anywhere in the closure, though window object was.