Fixed checkHtmlFile()
Added more checks