This must be moved to an external JS file due to our CSP header.