i am a little confused. i want to create a javascript object like:

```
function myObject(){
this.keyOne=1;
this.keyTwo=2;
this.keyThree=3;

function add(){
return this.keyOne+this.keyTwo+this.keyThree;
}

return{
    add: add
}

}

```

so creating this object with

```
var newObject = new myObject();

```

is working fine and all attributes are correct. but with

```
var result = newObject.add;

```

all keys are suddenly undefined! i have no idea why? :/