Setting document title based on page loaded through Ajax

Not the cleanest way, but somehow I couldn't use `$html.find('title')` or `$('title', $html)`, these couldn't find the title dom element.

And sorry for the mucking around with the issue thing, I was hoping I could attach this pull request to an issue easily afterwards.
Github noob :)