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) })();