Add js unit test.