Updated javascript unit tests.