var Master = function(){
    var main = "";

    return {
        init: function(){
            
            console.log(main);
            console.log(globalX);
            
            $('main').html(main);
        }
    };
}();

var globalX;

var Master = function(){
    var main = "";

    return {
        init: function(){
            
            console.log(this.main);
            console.log(globalX);
            
            $('main').html(main);
        }
    };
}();

var globalX;

Update master.js