If you are getting the following error message:
Input Error: There is no script engine for file extension ".js"
with Visual Studio 2005 Command Prompt or similar, try to add "/e:jscript" to the command line.
cscript /nologo /e:jscript win32/build/buildconf.js
It worked for me, I hope it helps.