[PATCH v3 5/6] jscript: Release all globals when the script is uninitialized.