text: /* HTTP server responds with a file at a given path requested in 
  the URL */
  var util = require("util"),
    sys=require("util"),
  	http=require("http"),
  	url=require("url"),
  	path=require("path"),
  	fs=require("fs");
  http.createServer(function(request,response){
  	var uri=url.parse(request.url).pathname;
  	var filename=path.join(process.cwd(),uri);
  	path.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/");