setup more general renderTextbookElement method

just give it any element and it will render it to the passed container
if possible