fixed some jshint warnings for #60