title: Javascript: variable as array key
body: <p>I im building and array where my array key is from a variable like this: </p>
  
  <pre><code>var art = $('#article_id').val();
  var stk =  $('#stk').val();
  elements ={ art : stk };
  alert(elements[art]);
  </code></pre>
  
  <p>but i end up with this output <code>art=&gt;50</code> instead of <code>5123=&gt;50</code></p>