Fixing some jshint warnings