Added failure update to the events.js file