Fixes #3422
Merge pull request #3435 from aaronschachter/donate_fix

Fixes JS error