Chat with no RequireJS

Wrapped all JavaScripts except AngularJS modules into anonymous functions to have the global scope clean. Guy's fixes of black screen on monitors also applied.
What is that structure? "window.chat = {}"
Is that default parameter?