If you’re having a problem in your browser with JavaScript, you may
want to re-register the jscript.dll file. This can be done by executing the

Start > Run…
In the Run box, type in (without quotes) “regsvr32 jscript.dll”
You should receive a popup says that it registration succeeded.

You then should be able to display JavaScript in your browser properly.

In general for you are having problem running Javascript and VBScript, at command prompt in DOS window do followings:

cd windows\system32
regsvr32 /u jscript.dll
regsvr32 /u vbscript.dll
regsvr32 jscript.dll
regsvr32 vbcript.dll