title: Javascript create Object by array
body: <p>I try to create an object with a value for the last key. I just have an Array with the keys and the value but dont know how it will be possible to create an object without use references in javascript. </p>
  
  <p>As far as I know there isnt a way to create a reference of a variable in javascript.</p>
  
  <p>This is what i have:</p>
  
  <pre><code>var value = 'test';
  var keys = ['this', 'is', 'a', 'test'];
  </code></pre>
  
  <p>This is what i want:</p>
  
  <pre><code>myObject: {
     this : {
       is: {
         a : {
           test : 'test'
         }
       }
     }
  }
  </code></pre>
  
  <p>Any idea how i can do this the best way in JavaScript ?</p>