var p = new function() { var thing = "private"; function privateFunction() { return thing; } this.publicFunction = function() { return thing; }; };
Done