Fix js unit tests.