The Scoop - issue with node server.js

When I first try to start the project with the sample code by calling node server.js. The terminal says listening on port 4000. Yet, I don’t seem to be connecting on localhost:4000/index.html when I call in the browser. However, if I use this simple code for a node server.js I see “Hello World” in the web browser.

var http = require(‘http’);

function onRequest(request, response) {
response.writeHead(200, {‘Content-Type’: ‘text/plain’});
response.write(“Hello World”);


Might there be a problem with the sample code provided?