I haven't fully vetted this, but jQuery 3.x finally removed the ".context" property that was deprecated in version 1.1. This is being used to set up the element property on defaults and htmlOptions in this plug-in.
I basically just removed ".context" and left the setters to just $(this) and everything seems to work.
i.e
var defaults = {
element: $(this),
and
var htmlOptions = {
element: $(this),
Appreciate any feedback or if anyone finds an issue created by this change. The plug-in just doesn't work at all in 3.x otherwise.