title: Adding Prototype to JavaScript Object Literal
body: <pre><code>STORE = {
     item : function() {
    }
  };
  STORE.item.prototype.add = function() { alert('test 123'); };
  STORE.item.add();
  </code></pre>
  
  <p>I have been trying to figure out what's wrong with this quite a while. Why doesn't this work? However, it works when I use the follow:</p>
  
  <pre><code>STORE.item.prototype.add();
  </code></pre>