Fix Rubocop and JSHint