Try $('head title').text() for page title