title: jquery dialog error : Expected identifier, string or number
body: <p>I get an error message from my jquery dialog: </p>
  
  <blockquote>
    <p>Error: Expected identifier, string or number. </p>
  </blockquote>
  
  <p>The error message points to the line with the <code>buttons: {</code>  declaration.  Any know what could cause the problem?</p>
  
  <pre><code>$(document).ready(function(){
  
  
  var $dialog = $('&lt;div&gt;&lt;/div&gt;').html('&lt;form id="myform" action=""&gt;&lt;input type="checkbox" id="completeCheck" name="completeCheck" value="" /&gt;Completeness check&lt;br /&gt;&lt;input type="checkbox" name="viewUnofficial" value="Car" /&gt; View unofficial status &lt;br /&gt;&lt;input type="checkbox" name="consist" value="" /&gt;Consistency&lt;br /&gt;&lt;input type="checkbox" name="otherData" value="" /&gt;Other checks&lt;br /&gt;&lt;input type="checkbox" name="keyCheck" value="" /&gt;Key check&lt;br /&gt;&lt;input type="checkbox" name="compareVersions" value="" /&gt;Compare versions&lt;br /&gt;&lt;/form&gt;').dialog({
      autoOpen: false,
      title: 'Select data check',
      buttons: {
          "Submit Form": function () {
              $('form#myform').submit();
          },
          "Cancel": function () {
              $(this).dialog("close");
          }
      }
  });
  
  });
  </code></pre>