code: protected void addJsFiles(JavaScriptObject files) {
  
          JsArray<CmsFileInfo> cmsFiles = files.cast();
          List<CmsFileInfo> fileObjects = new ArrayList<CmsFileInfo>();
          for (int i = 0; i < cmsFiles.length(); ++i) {
              fileObjects.add(cmsFiles.get(i));
          }
          addFiles(fileObjects);
      }
docs: Adds a javascript file array to the list of files to upload.<p>
  
  @param files a javascript file array