title: Chrome Extension: chrome.storage doesn't save anything
body: <p>I'm about to write an extension for counting my online hours.
  The permissions in the manifest.json file:</p>
  
  <pre><code>"permissions": [
  "tabs",
  "&lt;all_urls&gt;",
  "storage",
   "cookies"
  ],
  </code></pre>
  
  <p>background.js:</p>
  
  <pre><code>var firstValues = new Array(); //first extension startup values
      firstValues["tag"] = "0";
      firstValues["gesamt"] = "0";
  
  
  var values = new Array();
  
  
  chrome.storage.local.get('values', function (result) {
      values = JSON.parse(result.values); //Saving the values in the "values" array
      console.log(values);
      if (!values.length &gt;0) chrome.storage.local.set({'values': JSON.stringify(firstValues)});
  }); //Setting values to zero, if it is the first start
  </code></pre>
  
  <p>console.log(values) gives me just a "[]"; the Developer Tool shows nothing in Resources -> Local Storage, neither an error in the console.</p>
  
  <p>What am I doing wrong?</p>
  
  <p>Thanks</p>