title: Where to initialize extension related data
body: <p>am a newbie, trying to write some basics extension. For my extension to work i need to initialize some data, so what I did is inside my <code>background.js</code> i declared something like this.</p>
  
  <pre><code>localStorage["frequency"] = 1; //I want one as Default value. This line is not inside any method, its just the first line of the file background.js
  </code></pre>
  
  <p>Users can goto Options page and change this above variable to any value using the GUI. As soon as the user changes it in UI am updating that value. </p>
  
  <p>Now the problem is to my understanding background.js reloads everytime the machine is restarted. So every time I restart my machine and open Chrome the frequency value is changed back to 1. In order to avoid this where I need to initialize this value?</p>