remove unused helper functions (bug 1028010)

https://bugzilla.mozilla.org/show_bug.cgi?id=1028010

r? @robhudson @diox
yes, jinja autoescapes by default, unless you pass a filter that brings it outside of jinja land afaict.