destroyScript changes