fix error in js generation of delcall