seamonkey (spidermonkey api)
From what you posted, no one can trace what you’ve done.
You need to provide the source for your spidermonkey and any additional code (like your jsapi)
If you are following a compilation guide, you need to post the URL to that reference. If you are following documentation embedded in the source, you need to state.
If you are that certain that the integrity of your js code is correct (what tool did you use to check?) then I’d also ask what error messages are displayed and how are you seeing that the code isn’t executing… for instance are you using a browser’s developer tools or something else?