     languagesAsOptions: ->
       languages = verbalizeIt.dataContainer.languages
       langsArray = for languageCode, languageName of languages
-        "<option value=\"#{languageCode}\" data-language-name=#{languageName}>" +
-          languageName + "</option>"
+        "<option value=\"#{languageCode}\">#{languageName}</option>"
       langsArray.join("\n")
 
     languageChoice: ->

    submitTaskButton: ->
      $("#verbalizeit-caption-form").on "click", "#verbalizeit-choose-language", ->
        fromLanguageCode = $("#verbalizeIt-choose-from-language").val()
        fromLanguage = $("option[value=#{fromLanguageCode}").data("language-name")
        toLanguageCode = $("#verbalizeIt-choose-to-language").val()
        toLanguage = $("option[value=#{toLanguageCode}").data("language-name")
        verbalizeIt.languageHandler.handleTaskSubmission(
          fromLanguageCode, toLanguageCode, fromLanguage, toLanguage)

    downloadFileLink: ->
      $("#verbalizeit-caption-form").on "click", ".verbalizeit-download-link", ->
        taskID = $(@).data("task-id")
        $.get "https://stagingapi.verbalizeit.com/tasks/#{taskID}?auth_token=#{verbalizeIt.dataContainer.authToken}", (response)->
          window.open(response.completed_file, "_blank")

  getLanguages: ->
    $.get "https://stagingapi.verbalizeit.com/api/languages", (data)->

      $("#verbalizeit-caption-form").off 'click.submitTask'
      $("#verbalizeit-caption-form").on 'click.submitTask', "#verbalizeit-submit-task", ->
        $.ajax "https://stagingapi.verbalizeit.com/tasks/#{task.id}/start?auth_token=#{verbalizeIt.dataContainer.authToken}",
          type:
            'PUT'
          success: (submittedTask)->
            submitted = "Success! Your request will be processed within 24 hours."
            submittedTask.source_language = task.fromLanguage
            submittedTask.target_language = task.toLanguage
            verbalizeIt.dataContainer.tasks.push submittedTask
            verbalizeIt.dashboardHandler.drawDashboardWithoutAjax(submitted)

  binders:
    uploadToggles: ->
