I'm not sure how fast this code has to be (my guess is it doesn't matter), but creating an anonymous object here and then adding properties to it each time is going to be slow.  However, even with speed considerations aside, a well defined type that has all of the potential properties as undefined would be better, this way it can show up in the documentation as well, instead of just being an object.