Fix a few syntax issues and add test config.

Currently the only "test" is a run through closure-compiler to test for syntax
errors.
Merge pull request #70 from jsha/tests

Fix a few syntax issues and add test config.