fixed template.js helperservices issue