when i register to event with js client side, the event loop listen to the user, right?