Allow a jQuery object to be passed to the constructor.