code: function withoutTrailingSlash (s) {
                      if(!IS_BROWSER && HAS_OS && require('os').platform === 'win32') return s.replace(/\\+$/, '');
                      return s.replace(/\/+$/, '');
                  }
docs: Strips the trailing slashes from a string.
  @param {String} s The string to operate on.
  If using Node.js, it will replace the trailing slash based on the value of os.platform
  (i.e. if windows, '\\' will be replaced, '/' otherwise).
  @returns {String} The string without a trailing slash.
  @function