Fixed a bug in toJSON() that omits the _id property that Meteor uses.