new app.js and views.py fix for csv output