SuiteCRM8.x Javascript not working

Hello Friends,

I have updated my SuiteCRM from version 7.x to 8.x. Everything is functioning well except for the JavaScript. I have numerous customizations that rely on JavaScript, but none of them are working with the latest version of SuiteCRM 8.x.

In my editviewdefs.php, I have an onkeyup function defined as follows:

custom/modules/nhrem_nhr_employee/metadata/editviewdefs.php

1 =>
array (
‘name’ => ‘annual_salary’,
‘label’ => ‘LBL_ANNUAL_SALARY’,
‘displayParams’ =>
array (
‘field’ =>
array (
‘onkeypress’ => ‘return isNumber(event)’,
‘onkeyup’ => ‘getAnnualSalary()’,
),
),
),

I have also included the JavaScript file as shown below:

‘includes’ =>
array (
0 =>
array (
‘file’ => ‘custom/modules/nhrem_nhr_employee/JS/employee_master.js’,
),
),

Here is the content of my JavaScript file employee_master.js:

custom/modules/nhrem_nhr_employee/JS/employee_master.js

function getAnnualSalary() {
console.log(‘Annual salary checking’);
alert(‘Annual salary checking’);
let targetAnnual;
let fixedSalary;
let fixedAnnual = $(‘#annual_salary’).val();
let variableAnnual = $(‘#variable_annual_salary’).val();
if (fixedAnnual == ‘’) {
fixedAnnual = 0;
}
if (variableAnnual == ‘’) {
variableAnnual = 0;
}
targetAnnual = Number(fixedAnnual) + Number(variableAnnual);

if (!isNaN(targetAnnual)) {
    $('#target_annual_compensation').val(targetAnnual);
}
fixedSalary = fixedAnnual / 12;
$('#ctc_offered_per_month').val(fixedSalary);
console.log('Fixed Salary ' + fixedSalary);
console.log('Salary');
console.log(fixedAnnual);

}
However, it is not working. Even basic console.log or alert statements are not executing.
How do I fix this?