Fixing assorted JSHint errors.