fixed some jshint warnings
fixed some jshint warnings