changed fs.readFileSync to fs.readFile in getHtmlFile routine. export checkWebFile as a routine