Update gitignore.
Fix javascript unit tests.