title: Can I create an object with fields in Javascript and have VS2012 show these in intellisense?
body: <p>I am declaring the following within my script</p>
  
  <pre><code>function dialog($link) {
      var modal = {};
      ...
  
      function createModal() {
          modal.$modal = $.modal({
              title: title,
              closeButton: true,
              content: content,
              onClose: onModalClose,
              minWidth: 300,
              maxHeight: false,
              width: false,
              resizeOnLoad: true
          });
          modal.$form = $modal.find('.form');
          modal.$message = $modal.find('.message');
          modal.$submits = $modal.find('.submit-button');
          modal.href = $form.attr('data-href');
      }
  </code></pre>
  
  <p>There's no error checking here so if I wanted I could then go on and 
  write the following:</p>
  
  <pre><code>var a = modal.$formmmmmmmm;
  </code></pre>
  
  <p>I am used to C# where I declare a class and everything is defined. Is there some
  way that I could do this in Javascript? I heard VS2012 is a lot better with 
  javascript. Is anyone using this and will it give me intellisense using my code
  above or will I need to do things differently?</p>