Clearing .innerHTML prevents event handlers from being cleaned up.