BUGFIX: Added toJSON() to new Date() for serialization.