undoing async scripts