Deleting with no text deletes the script element if there's a script element before it