refactor html head to avoid duplications