modify js in events/index