you can create a public function that has access to the private variables like this
function Person() {
var secret = "Secret Message";
this.revealSecret = function() {
return secret;
}
}
var me = new Person();
me.revealSecret(); //returns "Secret Message"