JS: use RegExp object for multiple replace.

It appears that Chrome fails to notice the 'g' option
to the normal string replace function, but works if given
a RegExp object constructed with 'g'.
Templ: swap arrow direction on job page.

Now they point in the same directions as those
on the job output page.