Adjusted jinja2 to bring in javascript