title: Basic error when using jquery with nodejs
body: <p>I'm trying to use some jquery in my project and as soon as I tried using it I came across an error in copied code and can't get any google help on it</p>
  
  <pre><code> var jquery = require('jquery');
   var $ = jquery.create();
                  ^
   TypeError: Object function ( w ) {
       if ( !w.document ) {
            throw new Error( "jQuery requires a window with a document" );
       }
       return factory( w );
   } has no method 'create'
  </code></pre>
  
  <p>Long story:</p>
  
  <p>I'm trying to get plaintext from some html I have.</p>
  
  <p>I hope to use <code>.text()</code> function which supposedly does that.</p>
  
  <p>My resulting code should be:</p>
  
  <pre><code>console.log($(data).text());
  </code></pre>