abstract out setting browser document title.