fixed events.js for current and past events