currently what i have is:

```
var server = http.createServer(function(req,res){
    res.writeHead(200,{'Content-Type': 'text/html; charset=utf-8'});
    var oo = require('/test.js');
    oo(connection, function (e, result) {
        res.end(result);
    });
}).listen(80);

```

what i would like to do is

```
var server=http.createServer(function(req,res){
    res.writeHead(200,{'Content-Type': 'text/html; charset=utf-8'});
    var oo = require('/test.js');
    oo(connection, function (e, result) {});
    res.end(result);
}).listen(80);

```

but this does not work. 

the idea is to move 

```
res.end(result);

```

right above

```
}).listen(80);

```