Maybe the author of this could provide a web page that allows anybody to enter "safe" JavaScript.
Provide a $10 prize for setting a cookie to value xyz, or for calling function zyx().
Repeat until safe.. (Makes me think how bug bounties really are useful but not that useful for security).