trying to fix a memory leak issue.

Also update the promise.jsm path.