update js test case