Added support for using string, element, or jQuery objects are the root element