fixed some jshint warnings