protected String normalizeName(String originalName) {
        if (originalName == null || originalName.endsWith(".js")) {
            return originalName;
        }
        return originalName + ".js";
    }
protected String normalizeName ( String originalName ) { if ( originalName == null || originalName . endsWith ( ".js" ) ) { return originalName ; } return originalName + ".js" ; }
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