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: '',
log: 'trace'
require('node-monkey').start({host: "", port:"3000"});
app.get('/:index/:type/:id', function(req, res){
}).then(function (body) {
var hits = body.hits.hits;
}, function (error) {
var port= 9300;
app.listen(port, function() {
console.log("Listening on " + port);

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