Remove duplicate code in transcripts_ajax.

Removes duplicate code in "upload subtitles" for video player. As acceptance tests are already written they should cover this issue.

@polesye review please.
@chrisndodge review please also.