Elasticsearch with node.JS

I'm implementing REST API's of elasticsearch through node.js .
node.js script in one machine,elasticsearch in another machine.
I need to print the response of elasticsearch on web console instead of node.js
how can i do it?

node.js script:

var express = require('express');
var app = express();
var elasticsearch = require('elasticsearch');
var client = new elasticsearch.Client({
host: '10.96.82.98:9200',
log: 'trace'
});
require('node-monkey').start({host: "10.96.60.22", port:"3000"});
app.get('/:index/:type/:id', function(req, res){
client.get({
"index":req.params.index,
"type":req.params.type,
"id":req.params.id
}).then(function (body) {
var hits = body.hits.hits;
}, function (error) {
console.trace(error.message);
});
});
var port= 9300;
app.listen(port, function() {
console.log("Listening on " + port);
});

i'm getting the response on node console........ needed on web console