add a renderElement wrapper method to return HTML from a called element