// Set the server listen port
var port = '8083';
var camPath = 'http://127.0.0.1:8082/';


// no configuration below here
var MjpegCamera = require('mjpeg-camera');
var fs = require('fs');
var express = require('express');
var app = express();

app.listen(port, function () {
	console.log('Server running on port ' + port);
});

var camera = new MjpegCamera( { url: camPath } );

app.get( '/snap.jpg', function (req, res) {
	console.log('GET \'/snap.jpg\'');
	camera.getScreenshot( function (err, frame ) {	
		//res.writeHead(200, {'Content-Type': 'text/plain' });
		res.send( frame )
		}
	);

});
@@ -236,16 +236,44 @@
 press();
+%0Avar util = require('util');
 %0A%0Aapp.li
@@ -298,28 +298,26 @@
 n () %7B%0A%09
-console
+util
 .log(
+ 
 'Server 
@@ -448,15 +448,12 @@
  %7B%0A%09
-console
+util
 .log
@@ -610,11 +610,12 @@
 %09%7D%0A%09);%0A%0A
-
 %7D);
+%0A

change to util.log