Copy paste your SRT-file:
You can get srt files from closed caption via Downsub
Now copy this code and paste it into the captions.js file
And finally replace the paragraphs in index.html with these ones.
And set the appropriate classes on each paragraph.