Update Javascript events