Added toJSON() for Model and Collection