Refactor html head