code: function stripComments(fileStr) {
  
      var uid = '_' + Date.now(),
        primitives = [],
        primIndex = 0;
  
      return (
        fileStr
  
        /* Remove strings */
        .replace(/(['"])(\\\1|.)+?\1/g, function (match) {
          primitives[primIndex] = match;
          return (uid + '') + primIndex++;
        })
  
        /* Remove Regexes */
        .replace(/([^\/])(\/(?!\*|\/)(\\\/|.)+?\/[gim]{0,3})/g, function (match, $1, $2) {
          primitives[primIndex] = $2;
          return $1 + (uid + '') + primIndex++;
        })
  
        /*
          - Remove single-line comments that contain would-be multi-line delimiters
          - Remove multi-line comments that contain would be single-line delimiters
         */
        .replace(/\/\/.*?\/?\*.+?(?=\n|\r|$)|\/\*[\s\S]*?\/\/[\s\S]*?\*\//g, '')
  
        /*
          Remove single and multi-line comments,
          no consideration of inner-contents
         */
        .replace(/\/\/.+?(?=\n|\r|$)|\/\*[\s\S]+?\*\//g, '')
  
        /*
          Remove multi-line comments that have a replaced ending (string/regex)
          Greedy, so no inner strings/regexes will stop it.
         */
        .replace(RegExp('\\/\\*[\\s\\S]+' + uid + '\\d+', 'g'), '')
  
        /* Bring back strings & regexes */
        .replace(RegExp(uid + '(\\d+)', 'g'), function (match, n) {
          return primitives[n];
        }));
  
    }
docs: Strip all Javascript type comments from the string.
  (extracted from http://lorenwest.github.com/node-config/ )
  
  The string is usually a file loaded from the O/S, containing
  newlines and javascript type comments.
  
  Thanks to James Padolsey, and all who conributed to this implementation.
  http://james.padolsey.com/javascript/javascript-comment-removal-revisted/
  
  @protected
  @method _stripComments
  @param fileString {string} The string to strip comments from
  @return {string} The string with comments stripped.