updating donation forms js for page reload edge case