Fixing the js files for linting