var One = (function(){ /*somefuns*/ return { Out: function() { alert("one"); } } })() var Two = (function(){ /*somefuns*/ return { Out: function() { One.Out();//undefined } } })() Two.Out()