title: SyntaxError: missing : after property id when using jQuery
body: <p>Why do I get the following error when doing the following inside the jQuery validation plugin by bassistance? IMO this should have worked, but I get this:</p>
  
  <blockquote>
    <p>SyntaxError: missing : after property id</p>
  </blockquote>
  
  <pre><code>var type = $(this).type; //This is a hidden field in the form 
  
  
  $("#myForm").validate({
  
      var type = $(this).type;
      rules: {
          name: {
              required: true,
              minlength: 3,
              maxlength: 51
          },
      },
  </code></pre>