it should be like that:
sandbox.require = module.require;
because now it doesn't load js files from ts files.