Added modal to return jQuery object in render() call.