As you should know each SugarCRM view extends SugarView class which has a nifty method called _displayJavascript() who is responsible for including all needed JavaScript files.
When it comes to labels, by default, this function only loads current module labels into SUGAR.language.