title: localStorage undefined
body: <p>with this <code>function</code>:</p>
  
  <pre><code>function appendToStorage(name, data) {
      var old = localStorage.getItem(name);
      if (old === null) old = '';
      localStorage.setItem(name, old + data);
  }
  appendToStorage('oldData', $('textbox').value);
  </code></pre>
  
  <p>and this <code>html</code>:</p>
  
  <pre><code>&lt;textarea name ="textbox" cols="50" rows="5"&gt;
  say it...
  &lt;/textarea&gt;&lt;br&gt;
  
  &lt;input type="submit" onclick="appendToStorage(name, data)"/&gt;
  </code></pre>
  
  <p>I get <code>undefinedundefinedundefined...</code> on the console.</p>
  
  <p>what I am missing?</p>