Automatically add title to HTML page