code: public static String getExtension(String language) {
      language = language.toLowerCase();
      if("ecmascript".equals(language)) {
        language = "javascript";
      }
      return extensions.get(language);
    }
docs: Get file extension for script language.
  
  @param language the language name
  @return the file extension as string or null if the language is not in the set of languages supported by spin