Change event listener to prevent Firefox from resetting after GIF recording