[PATCH v2 3/3] jscript: Release all globals when the script ctx is destroyed or re-initialized.