Javascript events in Online evenement