trim templates to prevent conflicts with jQuery