document.title is set and updated properly