Add ability to get return types and append a preview to the dom.