Куда и что надо перенести:
const where = '.container';
const what = '.wrapper-item h3';
Конечно, можете и дальше использовать jquery:
$(where).prepend(function() {
return $(what, this);
});
Но это совсем не обязательно:
document.querySelectorAll(where).forEach(n => {
const el = n.querySelector(what);
n.prepend(el);
// или
n.insertBefore(el, n.firstChild);
// или
n.insertAdjacentElement('afterbegin', el);
// или
n.firstChild.replaceWith(el, n.firstChild);
// или
n.replaceChildren(el, ...n.childNodes);
});