move css and js out of index.jinja2
make update button update chart
refactor graph generation
Merge pull request #9 from webkom/js

Refactor graph generation