Fix JSHint errors/warnings
Merge pull request #4 from eide/jshint

Fix JSHint errors/warnings