var http = require("http");
var fs = require("fs");
http.createServer(function(request, response) {
fs.readFile("index.html", {encoding: "utf-8"}, function(error, file) {
response.writeHead(200, {"Content-type" : "text/html"});
response.write(file);
response.end();
});
}).listen(8000);
console.log('Server running on port 8000');