fixing some jshint warnings