Added Javascript unit tests.