     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.dashboardHandler.drawDashboard()

  dashboardHandler:
    drawDashboardWithoutAjax: (message=null)->
      $("#verbalizeit-caption-form").html(
        verbalizeIt.templates.dashboard(message)
      )

    drawDashboard: (message=null)->
      $.get "https://stagingapi.verbalizeit.com/tasks?auth_token=#{verbalizeIt.dataContainer.authToken}",
        (response)=>
          verbalizeIt.dataContainer.tasks = response
          @drawDashboardWithoutAjax message

  languageHandler:
    displayLanguages: ->
      $("#verbalizeit-caption-form").html(
        verbalizeIt.templates.languageChoice)

    handleTaskSubmission: (fromLanguageCode, toLanguageCode)->
      videoID = $('link[rel=canonical]').attr('href').split('/')[1]
      $.post "https://stagingapi.verbalizeit.com/tasks/vimeo",
        {
