code: public String jsComponentModules() {
  
          List<CmsSetupComponent> components = CmsCollectionsGenericWrapper.list(m_components.elementList());
  
          StringBuffer jsCode = new StringBuffer(1024);
          jsCode.append("\t// an array holding the components modules\n");
          jsCode.append("\tvar componentModules = new Array(");
          jsCode.append(components.size());
          jsCode.append(");\n");
          for (int i = 0; i < components.size(); i++) {
              CmsSetupComponent component = components.get(i);
              jsCode.append("\tcomponentModules[" + i + "] = \"");
              List<String> modules = getComponentModules(component);
              for (int j = 0; j < modules.size(); j++) {
                  jsCode.append(modules.get(j));
                  if (j < (modules.size() - 1)) {
                      jsCode.append("|");
                  }
              }
              jsCode.append("\";\n");
          }
          jsCode.append("\n\n");
          return jsCode.toString();
      }
docs: Returns js code with array definition for the component modules.<p>
  
  @return js code