title: Equivalent of object using literal notation
body: <p>See following class:</p>
  
  <pre><code>function availItem(xs, s, m, l, xl) {
              this.xs = xs;
              this.s = s;
              this.m = m;
              this.l = l;
              this.xl = xl;
          }
  </code></pre>
  
  <p>How can I declare the above class using JSON? I think It should be in following manner but problem is to pass argument.</p>
  
  <pre><code>var availItem = { 
                 xs : xs,
                  s : s,
                  m : m,
                  l : l,
                  xl : xl
  
  
  }
  </code></pre>
  
  <p>I want to use both in same manner like </p>
  
  <pre><code>var obj =new availItem(xs,s,b,l,xl);
  </code></pre>