title: Getting unexpected token when running
body: <p>While running this code through cmd i am getting this error. The error tells that its in line no. 7 but could't find. </p>
  
  <pre><code>var express = require('express'),
  filter = express(),
  server = require('http').createServer(filter),
  io = require('socket.io').listen(server),
  mongoose = require('mongoose'),
  
  server.listen(1149, '127.0.0.1');
  console.log('Server running at http://127.0.0.1:1149/');
  
  mongoose.connect('mongodb://localhost/chat', function(err){
      if(err){
          console.log(err);
      } else{
          console.log('Connected to mongodb!');
      }
  });
  
  var filter_CheckBoxSchema = mongoose.Schema({
  category : { type: Boolean, default: false },
  created: {type: Date, default: Date.now}
  });
  </code></pre>
  
  <p>I am getting an error:</p>
  
  <pre><code>C:\node\people discovery app\filter.js:7
  server.listen(1149, '127.0.0.1');
        ^
  SyntaxError: Unexpected token .
      at Module._compile (module.js:439:25)
      at Object.Module._extensions..js (module.js:474:10)
      at Module.load (module.js:356:32)
      at Function.Module._load (module.js:312:12)
      at Function.Module.runMain (module.js:497:10)
      at startup (node.js:119:16)
      at node.js:906:3
  </code></pre>