Better HTML title rendering

Previously the HTML title would render and showed the actual angular expression
for a while.

Thanks to Ralf.