var $wrap = $(".js-modals"); var $el = $("#clone-template"); if ($el.length) $el.replaceWith("
\n
<\/div>\n