parsing title from first h1 element, if no title is set