foundation to extract the title from HTML