title: How to rectify "Document was used before it was defined" using Jslint
body: <p>I get the following error in <em>jsLint</em>:</p>
  
  <blockquote>
    <p>'document' was used before it was defined.</p>
  </blockquote>
  
  <p>Line that causes the error:</p>
  
  <pre><code>document.cookie = name + "=" + value + expires + "; path=/";
  </code></pre>
  
  <p>I get why this happens, but I would like my code to be compliant.</p>
  
  <p>How do I resolve this?</p>
  
  <p>Thanks.</p>