A version of this action that uses less javascript and may be usable for those who don't use javascript is available at https://web.kamalaharris.com/forms/update-hfp-email-preferences?nowrapper=true&referrer=&source=&oneclick=