I have the next function in JS:

```
function status(){
  this.functionA = function(){}
  //Some others function and fields
}

```

and I have another function:

```
function create(root){
var server = libary(function (port) {
  //Here some functions
});
var returnValue = {
  current:status(),
  cur:function(port){
    current.functionA();
  }}
return returnValue;
}

```

when I call `current.functionA()`, It says that current is undefined. How can I call `functionA()`?