Switching from global function to Meteor property