Using firefox extension storage
<p>I'm able to run this extension somehow:</p>

<p><a href="https://github.com/mdn/webextensions-examples/tree/master/beastify" rel="nofollow">https://github.com/mdn/webextensions-examples/tree/master/beastify</a></p>

<p>On clicking the Browser Icon <code>popup/choose_beast.js</code> is invoked.</p>

<p>Can somebody tell me why this code(placed in the top of <code>popup/choose_beast.js</code>) is generating exception:</p>

<pre><code>try{
var ss = require("sdk/simple-storage");
ss.storage.myArray = [1, 1, 2, 3, 5, 8, 13];
}catch(e){
    alert('exception');
    console.log(e);
}
</code></pre>

<p>Here is the relevant entry in the <code>manifest.json</code>:</p>

<pre><code> "browser_action": {
    "default_icon": "icons/beasts-32.png",
    "default_title": "Beastify",
    "default_popup": "popup/choose_beast.html"
}
</code></pre>

<p>What is the way I can store the data in this popup html so that I can retrieve anytime in the content script?</p>

<p>Also under which context is this page choose_beast.html running? Background, page script or content script?</p>