Close last declaration

Need to close the declaration to avoid errors in combined Js files.
//file1
var foo = function(bar) { console.log(bar) }
//file2
(function() { alert(1) })();
Merge pull request #4 from mhmxs/patch-1

Close last declaration