let element tag = (*[element "a"] returns the obj equivalent of [<a>] *) document >>> call_method "createElement" [| string tag |]