updating head to be valid HTML