const http = require('http'); const url = require('url'); const fs = require('fs'); var config=null; //if config.local.jsoon exists load it if(fs.existsSync(process.cwd() + '/config.local.json')){ config = require(process.cwd() + '/config.local.json'); } // else load normal config file else { config = require(process.cwd() + '/config.json'); } function outputHTML5(status, response, content, title) { response.writeHead(status, { 'Content-Type': 'text/html; charset=utf-8' }); response.write( `