src/js/base/core/dom.js
function (node, wrapperName) {
            var parent = node.parentNode;
            var wrapper = $('<' + wrapperName + '>')[0];

            parent.insertBefore(wrapper, node);
            wrapper.appendChild(node);

            return wrapper;
        }
function (node, wrapperName) {
            var parent = node.parentNode;
            var wrapper = $('<' + wrapperName + '>')[0];

            parent.insertBefore(wrapper, node);
            wrapper.appendChild(node);

            return wrapper;
        }
function ( node , wrapperName ) { var parent = node . parentNode ; var wrapper = $ ( '<' + wrapperName + '>' ) [ 0 ] ; parent . insertBefore ( wrapper , node ) ; wrapper . appendChild ( node ) ; return wrapper ; }
wrap node with new tag.

@param {Node} node
@param {Node} tagName of wrapper
@return {Node} - wrapper
wrap node with new tag .