Whenever you create a new template you can use these boilerplate events and rename them to fit your needs.
Template.templateName.onDestroyed(function (){ }); Template.templateName.onRendered(function () { }); Template.templateName.events({ }); Template.templateName.helpers({ });