JS: restore default event handler