text: /*jshint globalstrict: true*/
  /*jshint node: true */
  "use strict";
  const http = require("http"),
      url = require("url"),
      path = require("path"),
      fs = require("fs");
  
  http.createServer(function(request, response) {
          let uri = url.parse(request.url).pathname;
          let filename = path.join(process.cwd(), uri);
          fs.exists(filename, function(exists) {
              if (!exists) {
                  response.writeHead(404, {
                      "Content-Type": "text/plain"
                  });
                  response.end("404 Not Found\n");
                  return;
              }
              fs.readFile(filename, "binary", function(err, file) {
                  if (err) {
                      response.writeHead(500, {
                          "Content-Type": "text/plain"
                      });
                      response.end(err + "\n");
                      return;
                  }
                  response.writeHead(200);
                  response.end(file, "binary");
              });
          });
      })
      .listen(8080);
  console.log("Server running at http://localhost:8080/");
  