Fix a few syntax issues and add test config.

Currently the only "test" is a run through closure-compiler to test for syntax
errors.

cc @BooDoo for code review.