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.
window is global scope, used the window identifier to be more specific.
Actually maybe BaseBroadcaster should be moved to baseBroadcaster module to have consistency with other modules like chat and config.