renamed from text/javascript to text/template