Fix some JS events.