Return a function / constructor which creates the element, initialises it, then returns it without adding it to the dom.