$(document).ready(function(){
    $(document).on("images.loaded", function() {        
        let org_contents = 'ORIGINAL-CONTENTS';
        if(typeof org_contents != 'string'){
            $.each(org_contents, function(k, v){
                let content_holder = $('.'+k);
                if(content_holder.length > 0){
                    content_holder.replaceWith(v);
                }
            });
        }
    });
})