Inlined createDom