class for building custom EJSON object in Meteor.