Replace h2 with h1 using jquery
$("h2").replaceWith(function () { return "<h1>" + $(this).text() + "</h1>"; });