Refactor the head html.