code: function (fileName, fileContents) {
              //Strip out comments.
              try {
                  var preamble = '',
                      commonJsProps = parse.usesCommonJs(fileName, fileContents);
  
                  //First see if the module is not already RequireJS-formatted.
                  if (parse.usesAmdOrRequireJs(fileName, fileContents) || !commonJsProps) {
                      return fileContents;
                  }
  
                  if (commonJsProps.dirname || commonJsProps.filename) {
                      preamble = 'var __filename = module.uri || "", ' +
                                 '__dirname = __filename.substring(0, __filename.lastIndexOf("/") + 1);\n';
                  }
  
                  //Construct the wrapper boilerplate.
                  fileContents = 'define(function (require, exports, module) {\n' +
                      preamble +
                      fileContents +
                      '\n});\n';
  
              } catch (e) {
                  console.log("commonJs.convert: COULD NOT CONVERT: " + fileName + ", so skipping it. Error was: " + e);
                  return fileContents;
              }
  
              return fileContents;
          }
docs: Does the actual file conversion.
  
  @param {String} fileName the name of the file.
  
  @param {String} fileContents the contents of a file :)
  
  @returns {String} the converted contents