var singleton = function () {
    var privateVeriable;
    function privatefunction(x) {
        //privateVariable
    }
    
    return { 
        firstMethod: function (a, b) {
            //I can access private values
        },
        secondMethod: function (c) {
            //I can access private values        
        }
    };
}();