       reindexUploadListInputs(list)
       new_el.find('input,textarea,select').filter(':visible').first().focus()
 
-    updateUploadListVisiblity(list, button, max)
+    updateUploadListVisiblity(list, govuk_button, max)
 
     if is_link
       $el.click (e) ->


    upload_started = (e, data) ->
      # Show `Uploading...`
      button.addClass("visuallyhidden")
      new_el = $("<li class='js-uploading'>")
      div = $("<div>")
      uid = '_' + Math.random().toString(36).substr(2, 9);

      # Remove `Uploading...`
      list.find(".js-uploading").remove()
      list.removeClass("visuallyhidden")
      govuk_button.removeClass("visuallyhidden")

    upload_done = (e, data, link) ->
      # Remove `Uploading...`
