Wraping elements in a div can break css (parent>child), removes the current selection and is probably not helpful. Just add the wrapper class to the root element for the plugin.

Leaving commented out code in place.