title: Is it correct to pass model reference directly to HTML element?
body: <p>Is it correct to pass model reference directly to HTML element?</p>
  
  <pre><code>window.car = {
     color: "blue",
     maxSpeed: 200
   }
  var element = $("&lt;div&gt;");
  car.$element = element;
  element[0]._model = car;
  </code></pre>
  
  <p>$("") creates a new jQuery element. JQuery has wrapped elements saved inside in keys 0,1,2 ... so [0] return first wrapped HTMLelement. _model is only name of reference variable.</p>