anchor.diff:                updateProgress(data.files[0].name, progress);
             },
             done: function (e, data) {
  -              //$("#submit_btn").off('click');
                 $.each(data.result.files, function (index, file) {
                     $('#progressinfo').html(file.name + " uploaded!");
                 });
  -              // now that we've uploaded all the files, handle google files (if there are any), which will also submit main form
  -              //uploadGoogleFiles();
                 localFileUploadCount++;
                 // if the number of 'done' files equals the number of selected files, then all uploads are done
  +              // handle google files (if there are any), which will also submit main form
                 if (localFileUploadCount == localFileCount) {
  -                uploadGoogleFiles(false);
  +                getGoogleFiles(false);
                 }
             }
         });
  
positive.code:               // pass the webkitRelativePath value (which contains the relative path to the file) to the form handler 
                // so it can build dir structure, and also file actual size
                data.formData = {"path": data.files[0].webkitRelativePath, "size": data.files[0].size};
                // remove default click handler for submit button (that alerted about no selected files)
                //$("#submit_btn").off('click', uploadGoogleFiles(true));
                //$("#submit_btn").off('click.noFiles');
                $("#submit_btn").off('click.googleFiles');
                // and add new click handler
                $("#submit_btn").on('click', function (ev) {
                    ev.preventDefault();
                    startUpload();
                    //$(this).attr("disabled", true);
                    //$(this).html("Please wait...");
                    data.submit();
                });
                localFileCount++;
  
negative.code:           success: function (data) {
              var progress = parseInt(Math.min(data["byte_to"], data["filesize"]) / data["filesize"] * 100, 10);
              updateProgress(data["path"], progress);
              // get the next chunk of this file if there's still data to get
              if (byte_to < size) {
                getGoogleFileChunk(index, dataset_id, byte_to + 1, byte_to + chunkSize);
  