title: How can I assign an element to variable?
body: <p>For example:
  I want to create shortcut to element array </p>
  
  <pre><code>var $artifacts = $('.game-artifact');
  </code></pre>
  
  <p>but atm there aren't any elements with such class. Then comes some code, which adds elements. The question is if, after I add these elements will variable $artifacts still refer to them or it will remain null? If so, how I manage to assign a reference to function to a variable?</p>