Add Events for js methods