fixed prototype#toJSON and add Model#toJSON