update js call