doc: Simply use dom parser to insert head section