__init__.py - add csrf protection for js
config.py - convert tuple to list to use in js
charts.html / refresh_charts.py - redirect from chart to search with parameters