edit.html.erb translated to jQuery

Mostly just formatting changes, except the small `script` block at the beginning of `edit.html.erb`, which was translated to jQuery.

Basically the same as https://github.com/MarkUsProject/Markus/pull/1247, except added a tiny bit of styling so it looks right.