wrap all template js files with Template.templateName.rendered=function(){};