Move code from Meteor.startup to Template.main.created.