Set the document title in the update function

Conflicts:
	generator.js