code: function setDirtyIndicator(isDirty) {
  		if (title) {
  			if (title.charAt(0) === '*' && !isDirty) {
  				title = title.substring(1);
  			}
  			if (isDirty && title.charAt(0) !== '*') {
  				title = '*' + title;
  			}
  			window.document.title = title;
  		}
  	}
docs: Set a dirty indicator for the page. An in-page indicator will always be set. If the document has a title (set via setPageTarget), then
  the title will also be updated with a dirty indicator.