added checkHtmlUrl function to check urls