Changed events.js again to fix URL problem