Fix JSHint warnings

Fixes #17.