title: Finding the cause/line of "Unexpected token ;" error in Express-JS
body: <p>I am using Parse with Express-JS. I am trying to display an EJS page but I'm getting an <code>Unexpected token ;</code> at the server (when command line <code>parse develop MyApp</code> is running at Terminal). Here is the full stack trace of the error:</p>
  
  <pre><code>I2014-08-02T15:07:19.886Z]SyntaxError: Unexpected token ;
  at Object.Function (&lt;anonymous&gt;)
  at exports.compile (ejs.js:256:12)
  at Object.exports.render (ejs.js:295:10)
  at View.exports.renderFile [as engine] (ejs.js:325:22)
  at View.render (express_view.js:77:8)
  at Function.app.render (express_application.js:516:10)
  at res.render (express_response.js:763:7)
  at userQuery.find.success (app.js:31:10)
  at Parse.js:2:5906
  at e (Parse.js:2:5101)
  </code></pre>
  
  <p>My <code>app.js</code> has:</p>
  
  <pre><code>app.get('/:username', function(req, res){
  
      Parse.initialize("...", "...");
      var userQuery = new Parse.Query("_User");
      userQuery.equalTo("username", req.params.username);
      userQuery.find({
        success: function(results) {
          var usr = results[0];
          res.render("user", {user : usr});
        },
  
        error: function(error) {
          alert(error);
          // error is an instance of Parse.Error.
          res.send(404, 'User not found!');
        }
      });
  
  });
  </code></pre>
  
  <p>The problem is I have no idea where this error is occuring. I've commented out all the script tags in my HTML of the ejs file but I'm still getting the same error. When I try another ejs file, my app works, so there's a problem with that particular ejs file's contents. How can I find the line number of the error? </p>