Update event.js

Fix for IE9/10