Update srt.js

Some srt files are not trimmed correctly and could have some empty line breaks at the beginning or the end.