Refresh graphs dynamically

For issue https://github.com/MarkUsProject/Markus/issues/339

Basically the same as Tobi's Gist code from that issue, but modified there's a new `js.erb` file instead of a new `rjs` file.
Redundant `self` detected.<br>Space missing to the left of {.