modify (cleaning) js in events/index