This fixes a bug where the video transcripts panel would be open on page load even when no transcripts were present. It also cleans up the code a bit to remove unused cookies and tries to reduce flickering of the transcript panel.