Fixed javascript jinja2 assignment bug