Stop Event.js from messing with global Event objects.

Fix #1170.