title: Unexpected token : Express and nodejs
body: <p>When trying to load the script i get the following error: </p>
  
  <p>name: this.name, online 57 </p>
  
  <p><img src="https://s28.postimg.org/df67f081p/error2.png" alt="a busy cat"></p>
  
  <pre><code>var redis = require('redis');
  var db = redis.createClient();
  
  module.exports = Card;
  function Card(obj)
  {
  for(var key in obj)
  {
      this[key] = obj[key];
  }
  }
  
  Card.prototype.save = function(fn)
  {
  if(this.id)
  {
      this.update(fn);
  }
  else
  {
      var card = this;
      db.incr('card:ids', function(err, id)
      {
          if(err) return fn(err);
          card.id = id;
          user.update(fn);
      });
  }
  };
  
  Card.prototype.update = function(fn)
  {
  var card = this;
  var id      = card.id;
  var name    = card.name;
  var type    = card.type;
  var manaCost = card.manaCost;
  var attackPoints = card.att;
  var magicPoints = card.magic;
  var soulPoints = card.soul;
  var cardImage = card.cardImage;
  db.set('card:id:' + card.name, id, function(err) 
  {
      if (err) return fn(err);
      db.hmset('card:' + id, name, type, manaCost, attackPoints, magicPoints, soulPoints, cardImage, function(err) 
      {
          fn(err);
      });
  });
     };
  
     Card.prototype.toJSON = function()
      {
  return 
  {
      id: this.id,
      name: this.name,
      type: this.type,
      manaCost: this.manaCost,
      attackPoints: this.attackPoints,
      magicPoints: this.magicPoints,
      soulPoints: this soulPoints,
      cardImage: this.cardImage
  
  }
  };
  
  var aquaDragon = new Card({
  name: 'Aqua Dragon',
  type: 'Rain',
  manaCost: '6',
  attackPoints: '4',
  magicPoints: '5',
  soulPoints: '6',
  cardImage: '/images/Monsters/Aqua%20Dragon.png'
  });
  
  var fireElemental = new Card({
  name: 'Fire Elemental',
  type: 'Sun',
  manaCost: '2',
  attackPoints: '0',
  magicPoints: '2',
  soulPoints: '2'
  cardImage: '/images/Monsters/Fire%20Elemental.png'
  });
  
  aquaDragon.save(function(err){
  if (err) throw err;
  console.log('user id %d', aquaDragon.id);
  });
  
  fireElemental.save(function(err){
  if (err) throw err;
  console.log('user id %d', fireElemental.id);
  });
  </code></pre>
  
  <p>The problem is in <code>.toJSON</code> method. When using Name: When using in a other script of mine it is working can't find the problem</p>