Migrate code to work with Meteor 0.6