npm-test: pass a directory instead of glob to jshint, fixes Windows issue
Fix JSHint warnings, remove superfluous catch/reject inside Promise
Merge branch 'master' into npm-test
Merge branch 'npm-test'