Fixing jshint basic warnings