Fix all style errors

JavaScript style now passes the Google Closer Linter, with 'all'
checks enabled.

Fixes #5.