js: command not found

Have You tried accessing the binary with the full path?

Maybe Your $PATH variable doesn't contain the default paths? echo $PATH should give something like:

[root@server ~]# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin

If it's empty, You may set the PATH variable with this command

export PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin"

On CentOS possible default full paths are:

/usr/bin/js - from package: js

You may install the required package with command yum install {package}
Error in other languages:
js: bevel nie gevind nie
js: comandă negăsită
js: comando não encontrado
js: commande introuvable
js: command not found
js: käsku ei ole
js: không tìm thấy lệnh
js: komanda nerasta
js: Kommando nicht gefunden.
js: kommandot finns inte
js: komut yok
js: nie znaleziono polecenia
js: níor aimsíodh an t-ordú
js: no se encontró la orden
js: no s'ha trobat l'ordre
js: opdracht niet gevonden
js: parancs nem található
js: perintah tidak ditemukan
js: príkaz nenájdený
js: příkaz nenalezen
js: команда не найдена
js: командата не е открита
js: 命令找不到
js: コマンドが見つかりません