Helper method for getting title of web page.