Remove duplicate code in transcripts_ajax.
Merge pull request #2622 from edx/alex/fix_duplicate_code_in_transcripts_ajax

Remove duplicate code in transcripts_ajax.