This is all exported inside an immediate anonymous function.

````
ret = '''
(function() {
'''

....

ret += '''
})();
'''
````