Meteor get Collections by Reference
root variable is essentially referencing the this global but detects the correct global reference based on where the client is running.
var colData = function (collectionName) {
var root = Meteor.isClient ? window : global;
var col = root[collectionName];
return col.find().fetch();
}
colData('Things');