code: function getBrowserVersion(version) {
    if (!version) {
      return {
        major: '',
        minor: '',
      };
    }
    var parts = version.split('.');
    return {
      major: parts[0],
      minor: parts[1],
    };
  }
docs: Get the version number in parts. This is very naive. We actually get major
  version as a part of UAParser already, which is generally good enough, but
  let's get the minor just in case.