title: node.js Unexpected identifier anywhere the file is called
body: <p>I'm writing an app in node.js and recently i had an unexpected error on all my project.</p>
  
  <p>When i try to call a model in my browser , i always get a </p>
  
  <p><code>SyntaxError: Unexpected identifier</code></p>
  
  <p>On any function called in my code .</p>
  
  <p>For example, if i go on "/session/new", </p>
  
  <p>my code is :</p>
  
  <pre><code>app.get('/session/new',function (req,res) {
      res.render('sessions/new',{locals:{
          redir:req.query.redir
      }});
  });
  </code></pre>
  
  <p>and i get an error </p>
  
  <pre><code>SyntaxError: Unexpected identifier
  at Object.Function (unknown source)
  at Object.render (/usr/local/lib/node/.npm/jade/0.6.3/package/lib/jade.js:267:14)
  at ServerResponse.render (/usr/local/lib/node/.npm/express/1.0.7/package/lib/express/view.js:334:22)
  at ServerResponse.render (/usr/local/lib/node/.npm/express/1.0.7/package/lib/express/view.js:344:10)
  at Object.&lt;anonymous&gt; (/Users/geraudmathe/Desktop/nodemongo/app.js:133:6)
  at param (/usr/local/lib/node/.npm/connect/0.5.2/package/lib/connect/middleware/router.js:145:21)
  at pass (/usr/local/lib/node/.npm/connect/0.5.2/package/lib/connect/middleware/router.js:161:10)
  at Object.router [as handle] (/usr/local/lib/node/.npm/connect/0.5.2/package/lib/connect/middleware/router.js:167:6)
  at next (/usr/local/lib/node/.npm/connect/0.5.2/package/lib/connect/index.js:232:23)
  at next (/usr/local/lib/node/.npm/connect/0.5.2/package/lib/connect/index.js:234:17)
  </code></pre>
  
  <p>where /nodemongo/app.js:133:6 is res.render in my code.</p>
  
  <p>It happen no matter what code i call.</p>
  
  <p>I'm lost ...</p>