Fixed bug that caused the path of the generated javascript file to
be appended multiple times with '.js', once for each time the
file was processed.  This resulted in the file's path going from
*.js to *.js.js to *.js.js.js, etc.