js invoke sequence modified