fixed broken AJAX from recent jinja changes