i add html to the page from json file using append and then try to build the correct grid using masonry
wrapper = `
//here html
`;
$('#service_its').append( wrapper );
jQuery('.masIts').masonry('layout'); //not working
an attempt to do the same through the console does not lead to the correct positioning of the elements, but it seems to work, returns the elements