Refresh graphs dynamically

For issue https://github.com/MarkUsProject/Markus/issues/339

Basically the same as Tobi's Gist code from that issue (which worked fine), but modified there's a new `js.erb` file instead of a new `rjs` file.