Fix jshint warnings

fixes #2