code: function appendLicenses(data) {
  
        data.html = appendLicenseFor(data.html, 'html');
        data.js   = appendLicenseFor(data.js, 'js');
        data.css  = appendLicenseFor(data.css, 'css');
  
        function appendLicenseFor(content, lang) {
              var commentStart = '', commentEnd = '';
  
          switch (lang) {
            case 'html' : commentStart = '<!--'; commentEnd = '-->'; break;
            case 'js'   : commentStart = '/**';  commentEnd = '**/'; break;
            case 'css'  : commentStart = '/*';   commentEnd = '*/';  break;
          }
  
          return content + '\n\n'+
            commentStart + '\n'+
            'Copyright 2018 Google LLC. All Rights Reserved. \n'+
            'Use of this source code is governed by an MIT-style license that can be found\n'+
            'in the LICENSE file at http://material.angularjs.org/HEAD/license.\n'+
            commentEnd;
        }
  
        return data;
      }
docs: Append MIT License information to all CodePen source samples(HTML, JS, CSS)