complete backtrack of events.js