update global objects. It is compatible with node.js executable JSX files