This function requires scripts similar to node.js.