Fix reviewer tools JS error

There are so many things wrong with this that I don't even want to
look at the `git blame`.