var bgImg = 'https://lazacode.org/img/img.jpg'; heroBg.after('<div class="hero-bg-clone" style="background-image: url('+bgImg+');"></div>');