Almost there. Modified 'checkHtmlFile'