Re-factored callback function for checkHtmlFile().