Fixing jshint errors