insertHTML refactor
Support for .wrap(function() {})