be more careful with @template in javascript notifier (closes #83)