fix javascript bug for add test cases in mission