Fix jshint warnings
Merge pull request #139 from andig/fix-jshint

Fix jshint warnings