Fix JSHint warnings

Fixes #28.