title: How can i access a element inside of a handlebars template?
body: <p>How can i access a element inside of a handlebars template? Im trying to access the #element-{{id}} inside the Handlebars Helper but im receiving a null on log.</p>
  
  <p><a href="https://jsbin.com/qulakolehi/edit?html,console,output" rel="nofollow">JSBin example</a></p>
  
  <pre><code>&lt;div class="container"&gt;
  &lt;div class="panel panel-default"&gt;
  &lt;script id="video-template" type="text/x-handlebars-template"&gt;
  {{#each items}}
  &lt;div class="panel-heading"&gt;
  &lt;h3 class="panel-title"&gt;{{snippet.title}}&lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="panel-body"&gt;
  {{someFunction id}}
  &lt;div id="element-{{id}}"&gt;&lt;/div&gt;
  &lt;/div&gt;
  {{/each}}
  &lt;/script&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  
  &lt;script&gt;
  Handlebars.registerHelper('someFunction', function(id) {
  console.log(document.getElementById("element-"+id));
  });
  &lt;/script&gt;
  </code></pre>