Changing wrapper to disable/enable scripts during dynamic creation