Event#add in scripts

Fixes #275.