In hindsight I probably could have guessed at "document.create" and then just read the autocomplete suggestions in devTools. :)