Fix scriptView event listener removal