title: calling a function twice
body: <p>I am trying to call a function twice, but with the current code I have getPoints() function  is skipped and the getPoints() function in the setInterval is called. I am trying to make it call the getPoints() function and then call the one inside the setInterval.</p>
  
  <pre><code>var background;
  // background page
  background = chrome.extension.getBackgroundPage();
  // get totals
  getPoints(background.localStorage.points);
  // update every 30 seconds
  setInterval(function() {
    console.log("func");
    getPoints(background.localStorage.points);
  }, 30000);
  </code></pre>