let
element tag =
document >>> call_method
"createElement"
[| string tag |]