Fix jshint and style issues.

Fixes #3