Fix JSHint warnings

Fixes gh-36