fix build problem. modify js script for SpiderMonkey Javascript Shell changes.