Assuming you're talking about the JavaScript samples found at
<Cognos Analytcs installation directory>\samples\JavaScript, either the samples or the instructions are broken.
The instructions say:
QuoteCopy this unzipped javascript folder and place it on your Cognos server here:
<Cognos Analytcs installation directory>\webcontent\samples\
Assuming the default settings for your installation, that means the report should expect to find them here:
/ibmcognos/samplesUnfortunately, the reports are designed to find them at
/samples/javascriptYou can either update each report, or put the sample scripts in
<default web site location>\samples\javascript. On a default IIS install, that would be
C:\inetpub\wwwroot\samples\javascript.