adaptation for Meteor JS