Fixing jshint warnings