Add js unit tests.