/* proxy.js This script help proxy text content of the requested page and render them locally */ //Get the target webpage body requirelib("http"); var websiteContent = http.get(url); //replace the relative path files with absolutes websiteContent = websiteContent.split('src="/').join('src="' + url + '/'); websiteContent = websiteContent.split('href="/').join('href="' + url + '/'); sendResp(websiteContent);