fixed jshint issues, see #4