<html xmlns="http://www.w3.org/1999/xhtml" xmlns:xul="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<xul:titlebar id="a"/>

<script>
var html = document.firstChild;
var a = document.getElementById('a')
document.removeChild(html)
document.appendChild(a)
</script>
</html>