code: protected String normalizeName(String originalName) {
          if (originalName == null || originalName.endsWith(".js")) {
              return originalName;
          }
          return originalName + ".js";
      }
docs: Helper method. Since module names should not include the .js extension, but the actual
  modules themselves usually do.
  @param originalName the module name
  @return the normalized name