Move A/B testing to the page title.
Correctly set page header if error occurs in JS.