Please remove the addition of '-review' to the subdomain portion of the get reviewDomain() function.
It is potentially breaking for Gerrit installations that are at gerrit.example.com instead of gerrit-review.example.com
This should either be a configurable option or not assumed at all.