code: public String jsModuleDependencies() {
  
          List<String> moduleNames = sortModules(getAvailableModules().values());
  
          StringBuffer jsCode = new StringBuffer(1024);
          jsCode.append("\t// an array holding the dependent modules for the n-th module\n");
          jsCode.append("\tvar moduleDependencies = new Array(");
          jsCode.append(moduleNames.size());
          jsCode.append(");\n");
          for (int i = 0; i < moduleNames.size(); i++) {
              String moduleName = moduleNames.get(i);
              List<String> dependencies = getModuleDependencies().get(moduleName);
              jsCode.append("\tmoduleDependencies[" + i + "] = new Array(");
              if (dependencies != null) {
                  for (int j = 0; j < dependencies.size(); j++) {
                      jsCode.append("\"" + dependencies.get(j) + "\"");
                      if (j < (dependencies.size() - 1)) {
                          jsCode.append(", ");
                      }
                  }
              }
              jsCode.append(");\n");
          }
          jsCode.append("\n\n");
          return jsCode.toString();
      }
docs: Returns js code with array definition for the available module dependencies.<p>
  
  @return js code