user event js check