Fixed some mistakes for js-tests

Fixed some mistakes for js-tests