Include titleHTML in templates. Closes #417