Jquery: how to detect when some element is added to dom?
<p>I want something like:</p>

<pre><code>$('.pac-container').whenAddToDom(function(){
    console.log('element with class pac-container added to DOM');
    //I want to use this added element $(this).doSomethingWithThis();
});
</code></pre>